import request from '@/utils/request'

// 查询伦理审核列表
export function listEthicalReview(query) {
  return request({
    url: '/review/ethicalReview/list',
    method: 'get',
    params: query
  })
}

// 查询伦理审核详细
export function getEthicalReview(ethicalReviewId) {
  return request({
    url: '/review/ethicalReview/' + ethicalReviewId,
    method: 'get'
  })
}

// 通过审核
export function addE(ethicalReviewId) {
  return request({
    url: '/review/ethicalReview/' + ethicalReviewId,
    method: 'post'
    // alert:"操作成功"
  })
}
// 不通过审核
export function noAddE(ethicalReviewId) {
  return request({
    url: '/review/ethicalReview/noadd/' + ethicalReviewId,
    method: 'post',
  })
}

// 新增伦理审核
export function addEthicalReview(data) {
  return request({
    url: '/review/ethicalReview',
    method: 'post',
    data: data
  })
}


// 修改伦理审核
export function updateEthicalReview(data) {
  return request({
    url: '/review/ethicalReview',
    method: 'put',
    data: data
  })
}

// 删除伦理审核
export function delEthicalReview(ethicalReviewId) {
  return request({
    url: '/review/ethicalReview/' + ethicalReviewId,
    method: 'delete'
  })
}
